using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using MediaOwl.Common.ScreenManagement;
using MediaOwl.Netflix.Resources;

namespace MediaOwl.Netflix.ViewModels
{
    [Export(typeof(IWorkspace))]
    public sealed class NetflixViewModel : Workspace<IWorkitem<IWorkspace>>
    {
        #region Constructor
        [ImportingConstructor]
        public NetflixViewModel([ImportMany(AllowRecomposition = true)] IEnumerable<IWorkitem<NetflixViewModel>> childScreens)
        {
            ChildScreens = childScreens as IEnumerable<IWorkitem<IWorkspace>>;
            DisplayName = Captions.ModuleTitle;
            Order = 1;
            IconName = Captions.MenuTitle;
            Icon = new ImageBrush
                       {
                           ImageSource =
                               new BitmapImage(new Uri(@"/MediaOwl.Netflix;component/Resources/Images/MovieIcon.png",UriKind.Relative))
                       };

            FillItems();
        }

        #endregion
    }
}